﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SoftwareConsulting.BI11.Studio.InternalServices;
using SoftwareConsulting.BI11.Studio.Core.DBProviders.Properties;

namespace SoftwareConsulting.BI11.Studio.Core.DBProviders
{
    public abstract class BIDBException : BIException
    {
        protected BIDBException(string message, Exception innerException, params object[] msgParams) :
            base(message, innerException, msgParams)
        {
        }
    }

    public class BITableExistsException : BIDBException
    {
        public BITableExistsException(Exception innerException) :
            base(Resources.BI_EXCEPTION_DATA_TABLEEXISTS, innerException)
        {
        }
    }

    public class BITablePrimaryException : BIDBException
    {
        public BITablePrimaryException(Exception innerException) :
            base(Resources.BI_EXCEPTION_DATA_PRIMARY, innerException)
        {
        }
    }
}
